<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:import url="/jsp/pager/pagerForm.jsp"></c:import>

<form method="post" rel="pagerForm" action="<c:url value='/showCustomerLookup'/>"
	onsubmit="return dwzSearch(this, 'dialog');">
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label>关键词：</label> <input type="text" name="keywords" value="${param.keywords}" /></li>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">搜索</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">

	<table class="list" width="1200" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="5%">序号</th>
				<th width="15%" orderField="customer" class="${pageHelper.orderField eq 'customer' ? param.orderDirection : ''}">客户名称</th>
				<th width="5%" orderField="customerType" class="${pageHelper.orderField eq 'customerType' ? param.orderDirection : ''}">客户类型</th>
				<th width="15%" orderField="address" class="${pageHelper.orderField eq 'address' ? param.orderDirection : ''}">地址</th>
				<th width="5%" orderField="contacts" class="${pageHelper.orderField eq 'contacts' ? param.orderDirection : ''}">联系人</th>
				<th width="5%" orderField="department" class="${pageHelper.orderField eq 'department' ? param.orderDirection : ''}">部门</th>
				<th width="5%" orderField="job" class="${pageHelper.orderField eq 'job' ? param.orderDirection : ''}">职务</th>
				<th width="7%" orderField="telephone" class="${pageHelper.orderField eq 'telephone' ? param.orderDirection : ''}">座机</th>
				<th width="7%" orderField="phone" class="${pageHelper.orderField eq 'phone' ? param.orderDirection : ''}">手机</th>
				<th width="7%" orderField="fax" class="${pageHelper.orderField eq 'fax' ? param.orderDirection : ''}">传真</th>
				<th width="14%" orderField="otherContact" class="${pageHelper.orderField eq 'otherContact' ? param.orderDirection : ''}">其他联系方式</th>
				<th width="10%">查找带回</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${customerList}" varStatus="s">
				<tr target="slt_objId" rel="${item.id }">
					<td>${s.index + 1}</td>
					<td>${item.customer}</td>
					<td>${item.customerType}</td>
					<td>${item.address}</td>
					<td>${item.contacts}</td>
					<td>${item.department}</td>
					<td>${item.job}</td>
					<td>${item.telephone}</td>
					<td>${item.phone}</td>
					<td>${item.fax}</td>
					<td>${item.otherContact}</td>
					<td><a class="btnSelect"
						href="javascript:$.bringBack({customer:'${item.customer}', customerType:'${item.customerType}', address:'${item.address}', contacts:'${item.contacts}', department:'${item.department}', job:'${item.job}', telephone:'${item.telephone}', phone:'${item.phone}', fax:'${item.fax}', otherContact:'${item.otherContact}'})"
						title="查找带回">选择</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

	<c:import url="/jsp/pager/panelBar.jsp"></c:import>

</div>
